Optimal. Leaf size=29 \[ \frac {\cot (x)}{\sqrt {a \csc ^2(x)}}+\frac {\csc (x) \sec (x)}{\sqrt {a \csc ^2(x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {3657, 4125, 2590, 14} \[ \frac {\cot (x)}{\sqrt {a \csc ^2(x)}}+\frac {\csc (x) \sec (x)}{\sqrt {a \csc ^2(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2590
Rule 3657
Rule 4125
Rubi steps
\begin {align*} \int \frac {\tan ^2(x)}{\sqrt {a+a \cot ^2(x)}} \, dx &=\int \frac {\tan ^2(x)}{\sqrt {a \csc ^2(x)}} \, dx\\ &=\frac {\csc (x) \int \sin (x) \tan ^2(x) \, dx}{\sqrt {a \csc ^2(x)}}\\ &=-\frac {\csc (x) \operatorname {Subst}\left (\int \frac {1-x^2}{x^2} \, dx,x,\cos (x)\right )}{\sqrt {a \csc ^2(x)}}\\ &=-\frac {\csc (x) \operatorname {Subst}\left (\int \left (-1+\frac {1}{x^2}\right ) \, dx,x,\cos (x)\right )}{\sqrt {a \csc ^2(x)}}\\ &=\frac {\cot (x)}{\sqrt {a \csc ^2(x)}}+\frac {\csc (x) \sec (x)}{\sqrt {a \csc ^2(x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 19, normalized size = 0.66 \[ \frac {\cot (x)+\csc (x) \sec (x)}{\sqrt {a \csc ^2(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 35, normalized size = 1.21 \[ \frac {{\left (\tan \relax (x)^{3} + 2 \, \tan \relax (x)\right )} \sqrt {\frac {a \tan \relax (x)^{2} + a}{\tan \relax (x)^{2}}}}{a \tan \relax (x)^{2} + a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {sage}_{0} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.57, size = 33, normalized size = 1.14 \[ \frac {\left (\sin ^{3}\relax (x )\right ) \sqrt {4}}{2 \sqrt {-\frac {a}{-1+\cos ^{2}\relax (x )}}\, \cos \relax (x ) \left (-1+\cos \relax (x )\right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.52, size = 18, normalized size = 0.62 \[ \frac {\tan \relax (x)^{2} + 2}{\sqrt {\tan \relax (x)^{2} + 1} \sqrt {a}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.73, size = 34, normalized size = 1.17 \[ \frac {{\mathrm {tan}\relax (x)}^3\,\sqrt {\frac {1}{{\mathrm {tan}\relax (x)}^2}}+2\,\mathrm {tan}\relax (x)\,\sqrt {\frac {1}{{\mathrm {tan}\relax (x)}^2}}}{\sqrt {a}\,\sqrt {{\mathrm {tan}\relax (x)}^2+1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tan ^{2}{\relax (x )}}{\sqrt {a \left (\cot ^{2}{\relax (x )} + 1\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________